package project.background.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import fld.background.system.controller.BaseController;
import project.background.service.BgRoleService;

@Controller
@RequestMapping (value="/background/role/")
public class BGRoleController extends BaseController{

	@Autowired
	private BgRoleService roleService;
	
	/**
	 * 查询全部
	 * @param tmap
	 * @return
	 * @author yc
	 * @date 2018年12月8日
	 */
	@ResponseBody
	@RequestMapping(value="queryCompanyRoles")
	public List<Map<String,Object>> queryCompanyRoles(@RequestParam Map<String,Object> tmap){
		return roleService.queryCompanyRoles(tmap);
	}
	
}
